package org.fault.enums;

public enum TypeEnum {
    fault(1,"故障率");

    private Integer code;

    private String data;

    TypeEnum(Integer code, String data) {
        this.code = code;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getValue(Integer code){
        if(code>0 ){
            return data;
        }
        return null;
    }

}
